//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    imgUrls: [
      '../../imgs/banner1.png',
      '../../imgs/banner2.jpg',
      '../../imgs/banner3.jpg',
      '../../imgs/banner4.jpg',
      '../../imgs/banner5.png',
    ],
    // 轮播设置
    indicatorDots: true,
    autoplay: true,
    interval: 5000,
    duration: 1000,
    circular: true,
    navigation: [{ icon: "icon-baomu2", color: "#ffa302", name: "住家保姆" },
      { icon: "icon-zhujiabaomu", color: "#6b6fde", name: "不住家保姆" },
    { icon: "icon-yuesao", color: "#3cb7e3", name: "月嫂" },
    { icon: "icon-yuersao", color: "#ff4968", name: "保洁",type:"baojie" },
    { icon: "icon-xiaoshigong", color: "#00c9c2", name: "小时工" },
    { icon: "icon-hugong2", color: "#f2732e", name: "护工" },
    
    ]
  },
  onLoad: function () {

  },
  applyReserve({ currentTarget: { dataset: { type } } }) {
    if (type =='baojie')
      wx.navigateTo({
        url: '../applydetail/baojieapply/baojieapply'
      })
  }
 
})
